package com.yskj.mwk;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.yskj.mwk.dao")
//开启定时任务功能
@EnableScheduling
public class MwkAdminApplication extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(MwkAdminApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(MwkAdminApplication.class, args);
    }

}

//public class MwkAdminApplication {
//    public static void main(String[] args) {
//        SpringApplication.run(MwkAdminApplication.class, args);
//    }
//
//}